package com.wofish.member.domain;


import com.wofish.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 会员积分明细表 wf_b2c_member_point
 * 
 * @author wofish
 * @date 2019-05-21
 */
public class MemberPoint extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	/** 积分日志ID */
	private Long id;
	/** 会员ID */
	private Long memberId;
	/** 当前积分 */
	private Integer point;
	/** 积分改变，可正可负 */
	private Integer changePoint;
	/** 理由 */
	private String reason;
	/** 备注 */
	private String remark;
	/** 积分关联对象ID */
	private Long relatedId;
	/** 操作类型 */
	private Integer type;
	/** 操作员ID */
	private Long operatorId;
	/** 操作员 */
	private String operator;
	/** 创建时间 */
	private Date createTime;
	/** 积分过期时间 */
	private Date expireTime;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getMemberId() {
		return memberId;
	}
	public void setPoint(Integer point) {
		this.point = point;
	}

	public Integer getPoint() {
		return point;
	}
	public void setChangePoint(Integer changePoint) {
		this.changePoint = changePoint;
	}

	public Integer getChangePoint() {
		return changePoint;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getReason() {
		return reason;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark() {
		return remark;
	}
	public void setRelatedId(Long relatedId) {
		this.relatedId = relatedId;
	}

	public Long getRelatedId() {
		return relatedId;
	}
	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return type;
	}
	public void setOperatorId(Long operatorId) {
		this.operatorId = operatorId;
	}

	public Long getOperatorId() {
		return operatorId;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getOperator() {
		return operator;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}
	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}

	public Date getExpireTime() {
		return expireTime;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("point", getPoint())
            .append("changePoint", getChangePoint())
            .append("reason", getReason())
            .append("remark", getRemark())
            .append("relatedId", getRelatedId())
            .append("type", getType())
            .append("operatorId", getOperatorId())
            .append("operator", getOperator())
            .append("createTime", getCreateTime())
            .append("expireTime", getExpireTime())
            .toString();
    }
}
